package com.detect.common.exception;

/**
 * 业务异常类型枚举
 **/
public enum BusinessExceptionEnum implements BaseBusinessExceptionDesc {

    /*10000-11999：通用异常*/
    ENTITY_NAME_EXIST(10001, "名称重复！"),
    ;

    private final Integer code;

    private final String msg;

    BusinessExceptionEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    @Override
    public Integer getCode() {
        return this.code;
    }

    @Override
    public String getMessage() {
        return this.msg;
    }
}
